<template>
    <div>

    </div>
</template>

<script>
  import * as rx from "rxjs";
  /// 演示 promise observable区别
  export default {
    name: "base-01",
    data(){
      return {log:''}
    },
    methods:{
      printLog(xs){
        xs.forEach(s => this.log = this.log + '\n' + JSON.stringify(s))
      }
    },
    created(){
        var src$ = rx.of('hello',rx.asyncScheduler)
        src$.subscribe(console.log)
        console.log('world')
    }
  }
</script>